//
//  OrderDescTableCell.m
//  LoveFreshBeen
//
//  Created by vinsent on 16/10/20.
//  Copyright © 2016年 魏根. All rights reserved.
//

#import "OrderDescTableCell.h"

@interface OrderDescTableCell ()

@property (weak, nonatomic) IBOutlet UILabel *orderIdLab;
@property (weak, nonatomic) IBOutlet UILabel *reciverLab;
@property (weak, nonatomic) IBOutlet UILabel *takeOrderTimeLab;
@property (weak, nonatomic) IBOutlet UILabel *sendTimeLab;
@property (weak, nonatomic) IBOutlet UILabel *sendTypeLab;
@property (weak, nonatomic) IBOutlet UILabel *payTypeLab;
@property (weak, nonatomic) IBOutlet UILabel *descLab;

@end

@implementation OrderDescTableCell

- (void)awakeFromNib {
    [super awakeFromNib];
}

- (void)setOrder:(OrderViewModel *)order {
    _order = order;
    _orderIdLab.text = order.myorderModel.order_no == nil ? @"  " : order.myorderModel.order_no;
    _reciverLab.text = order.myorderModel.checknum == nil ? @"  " : order.myorderModel.checknum;
    _takeOrderTimeLab.text = order.myorderModel.create_time == nil ? @"  " : order.myorderModel.create_time;
    _sendTimeLab.text = order.myorderModel.accept_time == nil ? @"  " : order.myorderModel.accept_time;
    _sendTypeLab.text = [order.myorderModel.order_delivery_status intValue] == 0 ? @"送货上门" : @"商铺自提";
    _payTypeLab.text = [order.myorderModel.pay_type intValue] == 1 ? @"在线支付" : @"货到付款";
}

@end
